package com.bang.study.decorate;

/**
 * @ClassName: RedShapeDecorator
 * @author: BANG
 * @Date: 2019/10/29 11:31
 * @Version: 1.0
 * @Modified By:
 * @Desc: TODO
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape decorateShape) {
        super(decorateShape);
    }

    @Override
    public void draw() {
        decorateShape.draw();
        setRedBorder(decorateShape);
    }

    private void setRedBorder(Shape decoratedShape){
        System.out.println("Border Color: Red");
    }
}
